package hmvc.j2me.midlet;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

import hmvc.j2me.controller.AController;

public abstract class AHmvcMidlet extends AController implements IHmvcMidlet {
	
	private MIDlet midlet;
	
	private Display display;

	public AHmvcMidlet(MIDlet midlet) {
		setMidlet(midlet);
		setDisplay(Display.getDisplay(midlet));
	}

	public MIDlet getMidlet() {
		return midlet;
	}

	public void setMidlet(MIDlet midlet) {
		this.midlet = midlet;
	}

	public Display getDisplay() {
		return display;
	}

	public void setDisplay(Display display) {
		this.display = display;
	}

}
